﻿using System;
using System.Collections.Generic;
using System.Text;
using ShootSearch.Core;
using ShootSearch.Util;
using System.ComponentModel;
using ShootSearch.FileSystem;
using ShootSearch.Indexers;

namespace ShootSearch.Parsers
{
    [Serializable]
    [TypeConverter(typeof(ExpandableConverter<PageRule>))]

    public class ProcessorConfig : SpiderManConfig
    {
        public string InputPath { get; set; }
        public string ID { get; set; }
        
        public AssemblyWithConfig Input { get; set; }
        public AssemblyWithConfig Output { get; set; }
        public AssemblyWithConfig PageParser { get; set; }
        public List<AssemblyWithConfig> Filters { get; set; }

        public ProcessorConfig()
        {
            Input = new AssemblyWithConfig(typeof(STFileSystem));
            Output = new AssemblyWithConfig(typeof(DBIndexer));
            Parsers = new List<AssemblyWithConfig>();
            PageParser = new AssemblyWithConfig(typeof(RegexFilter));
        }
    }
}
